﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyCompany.ascx.cs" Inherits="PayrollHR.Administration.Modules.MyCompanyControl" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>
<%@ Register Src="SimpleTextBox.ascx" TagName="SimpleTextBox" TagPrefix="uc6" %>
<%@ Register Src="EmailTextBox.ascx" TagName="EmailTextBox" TagPrefix="uc5" %>
<%@ Register Src="~/Administration/Modules/DecimalTextBox.ascx" TagPrefix="uc1" TagName="DecimalTextBox" %>


<asp:UpdatePanel ID="upForumSubscriptions" runat="server">
    <ContentTemplate>
        <div class="section-header">
            <div class="title">
                <img src="Common/ico-customers.png" alt="Admin.Customers.ManagerCustomer" />
                <%=GetLocaleResourceString("Admin.Company.ManagerCompany")%>
            </div>
            <div class="options">
                <asp:Button ID="SaveButton" runat="server" Text="Save"
                    CssClass="adminButtonBlue" OnClick="SaveButton_Click" ToolTip="Save Company Info" />
            </div>
        </div>
        <p></p>
        <table class="adminContent">
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="lblCustName" Text="<% $PayrollResources:Admin.CompanyInfo.ComName.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.ComName.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData" >
                    <uc6:SimpleTextBox ID="txtComName" Width="600px" CssClass="adminInput" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustDateOfBirth" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.ComAddress.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.ComAddress.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtAdress" Width="600px" runat="server" CssClass="adminInput" MaxLength="128"></asp:TextBox>                    
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustAddres" runat="server" Text="<% $PayrollResources:Admin.ComPanyInfo.ComTaxCode.Text %>"
                        ToolTip="<% $PayrollResources:Admin.companyInfo.ComTaxCode.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtTaxcode" CssClass="adminInput" runat="server" Width="600px" MaxLength="32"></asp:TextBox>                    
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustEmail" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.ComEmail.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.comEmail.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">    
                    <uc5:EmailTextBox ID="txtEmailSend" Width="600px" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl1" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.EmailSender.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.EmailSender.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <uc5:EmailTextBox ID="txtReceive" Width="600px" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl2" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.host.text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.host.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <uc6:SimpleTextBox ID="txtHost" CssClass="adminInput" runat="server" />
                    <asp:Label ID="Label1" runat="server" Text="Port"></asp:Label>
                    <uc1:DecimalTextBox runat="server" ID="txtPort" />
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl3" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.pass.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.pass.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtPassword" Width="300px" MaxLength="64" runat="server"></asp:TextBox>
                </td>
            </tr>  
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl4" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.EmailTo.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CompanyInfo.EmailTo.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <uc5:EmailTextBox ID="txtMailTo" Width="600px" runat="server" />
                </td>
            </tr>       
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="up1" runat="server" AssociatedUpdatePanelID="upForumSubscriptions">
    <ProgressTemplate>
        <div class="progress">
            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/UpdateProgress.gif"
                AlternateText="update" />
            <%=GetLocaleResourceString("Admin.Common.Wait...")%>
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>
